<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>物资盘点计划表</title>
    <jsp:include page="/WEB-INF/view/commons/css.jsp" />
</head>
<body >
<div id="main-container" class="container-fluid">
    <div class="panel panel-info">
        <div class="panel-body" id="pop">
            <form  action="appCheckPlan/commitCheck" name="inputForm" id="inputForm" method="post" class="form-horizontal">
        <input name="id" id="id" value="${entity.id}" type="hidden" />
        <input name="signName" id="signName" value="" type="hidden" />
        <input name="port" id="port" value="${port}" type="hidden" />
        <div style="border-bottom: 1px solid #000000;padding: 10px 5px;margin-bottom: 15px;font-size:16px">
            ${entity.planName}
        </div>
        <div style="text-align: center;position: relative; width: auto" >
            <h4 style="text-align: center;font-size: 21px;display: inline-block;margin-top: 8px;margin-bottom: 8px;">
                物资盘点计划表
            </h4>
            <img src="${barCodeImg}" style="position: absolute;right: 10px;top: 0;width: 160px;height: 65px"/>
        </div>
        <table style="width: 100%;margin-top: 30px">
            <tr>
                <td style="text-align: left">
                    ${entity.checkCode}
                </td>
                <td style="text-align: right;">
                    共 ${checkMats} 件物资
                </td>
            </tr>
        </table>
        <table border="1" style="border-collapse: collapse;width: 100%;margin:auto;">
            <tr>
                <td align="center">序号</td>
                <td align="center">物资编号</td>
                <td align="center">物资名称</td>
                <td align="center">规格</td>
                <td align="center">单位</td>
                <td align="center">系统库存</td>
                <td align="center">盘点库存</td>
                <td align="center">备注</td>
            </tr>
            <c:forEach var="each" varStatus="vs" items="${appCheckDetailList}">
                <tr>
                    <td class='center'>${vs.index+1}</td>
                    <td align="center">${each.materialsCode}</td>
                    <td align="center">${each.materialsName}</td>
                    <td align="center">${each.specification}</td>
                    <td align="center">${each.unit}</td>
                    <td align="center">${each.systemStock}</td>
                    <td align="center">${each.checkStock}</td>
                    <td align="center">${each.remark}</td>
                </tr>
            </c:forEach>
        </table>
        <table style="width: 100%;margin-top: 10px;">
            <tr>
                <td width="33%" style="vertical-align: top;text-align: left;">盘点时间：${entity.checkTimeStr}</td>
                <td width="33%" style="text-align: right;vertical-align: top;">
                    <p style="text-align: right;margin: 0;">经办人：${entity.checker}</p>
                </td>
            </tr>
            <tr>
                <td width="50%" style="vertical-align: top;text-align: left" colspan="2">
                    <table width="100%">
                        <tr>
                            <td style="text-align: left">
                                备注：${entity.remark}
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    签名： <img id="qianming" src="${entity.signName}" style="height: 90px;vertical-align: middle;"/>
                </td>
            </tr>
        </table>
    </form>
    <div class="form-group">
        <div class="center">
            <button type="button" class="btn btn-primary" onclick="submitInfo();"><i class="fa fa-floppy-o"></i>&nbsp;打印</button>
            <button type="button" class="btn" onclick="onClose();"><i class="fa fa-close"></i> 关闭</button>
        </div>
    </div>
        </div>
    </div><!-- /.panel -->
</div><!--/#main-container-->

<!-- script start -->
<jsp:include page="/WEB-INF/view/commons/js.jsp" />
<script type="text/javascript" src="${res}/static/plugin/jquery-print/jQuery.print.js"></script>
<script type="text/javascript">
    $(document).ready(function(e) {
        
    });
    function submitInfo(){
    	$.print("#inputForm");
    }
    function onClose(){
    	closeParentIframe();
    }
</script>
<!-- script end -->
</body>
</html>
